﻿using Engine;
using GameEntitySystem;
using TemplatesDatabase;
#region SubsystemNK
public class SubsystemNK : Subsystem
{


    public Vector3 CS1;

    public Vector3 CS2;

    public Vector3 CS3;

    public float JC { get; set; }

    public float JianJC { get; set; }

    public float Money { get; set; }

    public float DF { get; set; }

    public override void Load(ValuesDictionary valuesDictionary)
    {
        
        ((Subsystem)this).Load(valuesDictionary);
        DF = valuesDictionary.GetValue<float>("DF");
        CS1 = valuesDictionary.GetValue<Vector3>("CS1");
        CS2 = valuesDictionary.GetValue<Vector3>("CS2");
        CS3 = valuesDictionary.GetValue<Vector3>("CS3");
        JC = valuesDictionary.GetValue<float>("JC");
        Money = valuesDictionary.GetValue<float>("Money");
        JianJC = valuesDictionary.GetValue<float>("JianJC");
    }

    public override void Save(ValuesDictionary valuesDictionary)
    {
        
        valuesDictionary.SetValue<float>("JianJC", JianJC);
        valuesDictionary.SetValue<Vector3>("CS1", CS1);
        valuesDictionary.SetValue<Vector3>("CS2", CS2);
        valuesDictionary.SetValue<Vector3>("CS3", CS3);
        valuesDictionary.SetValue<float>("DF", DF);
        valuesDictionary.SetValue<float>("JC", JC);
    }
}
#endregion SubsystemNK